package com.wgh.demo.ai.repository;

import com.wgh.demo.ai.entity.Stock;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StockRepository extends JpaRepository<Stock, Long> {
    boolean existsByCode(String code);
    Stock findByCode(String code);
}